from django.db import models
from utils.BaseModel import BaseModel
# Create your models here.
class Nav(BaseModel):
    name = models.CharField(max_length=20, verbose_name="导航名称")
    position = models.IntegerField(verbose_name="导航位置",default=0) #0 头 1 尾
    link = models.CharField(max_length=200, verbose_name="链接地址",default='')
    class Meta:
        db_table = "nav"
    def __str__(self):
        return self.name

